import React, { Component } from 'react';
import Routerview from '../../router/routerview';
import {NavLink} from 'react-router-dom'
import '../../App.scss'
class Index extends Component {
    render() {
        const {router}=this.props
        return (
            <div className='wrap'>
                <div className="main">
                <Routerview router={router}></Routerview>
                </div>
                <div className="footer">
                  {
                      router.length>0&&router.map((v,i)=>{
                          return (
                              v.path&&<NavLink key={i} to={v.path}>{v.name}</NavLink>
                          )
                      })
                  }
                </div>
              
            </div>
        );
    }
}

export default Index;
